package teleradiologia.service;

import java.util.List;

import teleradiologia.domain.Customer;
import teleradiologia.domain.Patient;
import teleradiologia.domain.Person;
import teleradiologia.repository.PatientDao;

public interface PatientManipulator {
	// simple CRUD operations
	long create(Patient patient, Person person, Customer customer);
	Patient getById(long id);		 // read
	void update(Patient patient);	 // update
	void delete(Patient patient);	 // delete
	Patient getByPesel(String pesel);
	List<Patient> getAll();

	// IoC - setter
	public void setPatientDao(PatientDao patientDao);

	Patient getByIdPerson(long id);

}
